//
//  SettingTableViewCell.swift
//  Exchange
//
//  Created by rui on 2018/4/19.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit

class SettingTableViewCell: UITableViewCell {

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: .value1, reuseIdentifier: reuseIdentifier)
        self.textLabel?.themeTextColor = ThemeManager.ThemeColorKeys.text1
        self.textLabel?.font = UIFont.systemFont(ofSize: 15)
        self.detailTextLabel?.themeTextColor = ThemeManager.ThemeColorKeys.text3
        self.detailTextLabel?.font = UIFont.systemFont(ofSize: 12)
        self.accessoryView = UIImageView(image: #imageLiteral(resourceName: "arrow_right"))
        self.themeBackground = ThemeManager.ThemeColorKeys.background
        let view = UIView(frame: self.bounds)
        view.autoresizingMask = [.flexibleWidth,.flexibleHeight]
        self.selectedBackgroundView = UIView(frame: self.bounds)
        self.selectedBackgroundView?.themeBackground = ThemeManager.ThemeColorKeys.selectTabColor
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
